package com.qf.ssm.service.impl;

import com.qf.ssm.mapper.CustomerReportMapper;
import com.qf.ssm.po.CustomerReport;
import com.qf.ssm.qo.CustomerReportQO;
import com.qf.ssm.service.CustomerReportService;
import com.qf.ssm.utlis.CommonBeanutils;
import com.qf.ssm.vo.CustomerReportVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author chengqiang
 * @Create 2024-01-05-19:20
 * @Description: 举报信息业务层
 */
@Service
public class CustomerReportServiceImpl implements CustomerReportService {

    @Autowired
    private CustomerReportMapper customerReportMapper;

    @Override
    public Integer saveCustomerReportService(CustomerReportQO customerReportQO) {
        CustomerReport customerReport = CommonBeanutils.convertTo(customerReportQO, CustomerReport::new);
        return customerReportMapper.insertCustomerReport(customerReport);
    }
}
